FROM golang

COPY ./yaml /var/yaml
COPY ./config/online.json /var/config/online.json
WORKDIR /go/src/frontend4chain
COPY . .
RUN go get -u github.com/dgrijalva/jwt-go
RUN go get -u github.com/go-gomail/gomail
RUN go get -u github.com/rhinoman/couchdb-go
RUN go get -u github.com/twinj/uuid
RUN go get -u github.com/GiterLab/aliyun-sms-go-sdk
RUN go build

EXPOSE 8000

CMD ["./frontend4chain"]